import React, { Component } from 'react';
import {Svg} from "src/components/common";
import './GetMore.scss';

class GetMore extends Component {
    render() {
        const { disabled, onClick, content } = this.props;
        return (
            <div>
                {disabled ?
                    <p onClick={e => onClick()} className="get-more">{content}<Svg hash="#svg-arrow-down" /></p>
                : <p className="get-more not-more">{content}</p>}
            </div>
        );
    }
}

GetMore.defaultProps = {
    onClick: () => { },
    content: '加载更多'
}

export default GetMore;